package com.yjd.pub.order.dao;

import com.yjd.comm.base.dao.IBaseDao;
import com.yjd.comm.merchant.dto.EverPurchaseProjectDto;

import java.util.List;
import java.util.Map;

/**
 * <b>description</b>：订单项目数据访问接口<br>
 * <b>time</b>：2017-06-27 08:54:10 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IOrderProjectDao extends IBaseDao{

    /**
     * 根据order id查询相关的所有project id
     * Created by yangchangyan on 2017/8/22.
     *
     * @param
     * @return
     * @throws
     */
    public List<Long> queryProjectId(Map<String,Object> param) throws Exception;

    /**
     * 查询购买的项目记录，如：
     * 1、根据user_id查询此用户曾经购买过的项目
     * 2、根据order_id查询此订单包含哪些项目
     * Created by yangchangyan on 2017/11/29.
     *
     * @param
     * @return
     * @throws
     */
    public List<EverPurchaseProjectDto> everPurchaseProject(Map<String, Object> param) throws Exception;
}